MPHB\Advanced\Api\ApiAuthentication B

Total Complexity 96
Dependencies 3
Dependents 1
Total lines 622
Lines of code 316
Logical lines of code 191
Comment lines 222
Methods 22
Properties 3

Methods 22

Method Rating Maintainability Complexity Lines of code
checkPermissions()
A
52 12 24
performBasicAuthentication()
A
51 10 25
checkOauthSignature()
A
48 9 27
getOauthParameters()
A
46 8 40
checkOauthTimestampAndNonce()
S
49 7 29
authenticationFallback()
S
60 7 13
parseHeader()
S
57 6 15
performOauthAuthentication()
S
53 5 23
getAuthorizationHeader()
S
59 5 14
authenticate()
S
63 5 12
joinWithEqualsSign()
S
59 4 14
checkUserPermissions()
S
65 3 10
sendUnauthorizedHeaders()
S
67 3 7
getUserDataByConsumerKey()
S
60 1 15
getCurrentAuthKeyId()
S
80 2 3
isRequestToRestApi()
S
64 2 9
checkAuthenticationError()
S
72 2 6
normalizeParameters()
S
70 1 6
getError()
S
82 1 3
updateLastAccess()
S
64 1 10
setError()
S
77 1 4
__construct()
S
67 1 7